#include <iostream>
#include <string>
#include <clocale>
#include <fstream>
#include "Person.h"
#include "InterestTable.h"
#include "PersonList.h"
#include "Couple.h"
#include "Dating.h"

using namespace std;

int main_test()
{
	/*Person p1("Tommy");
	Person p2("Ann");
	
	p1.add_interest("skiing");
	p1.add_interest("climbing");
	p2.add_interest("skiing");
	p2.add_interest("running");


	for (auto &node : p1.getInterests())
	{
		if (p2.checkIfMatch(node.data))
		{
			cout << "Match" << endl;
			Couple c1(p2, p1);
		}
		else
			cout << "NoMatch" << endl;
	}


	PersonList<Person> pl;
	pl.add_at_head(p1);
	pl.add_at_head(p2);
	for (auto &person : pl)
	{
		cout << person.data.getName() << endl;
	}*/

	Dating d;
	d.ReadGirlsFromFile("girls.txt");
	d.ReadBoysFromFile("boys.txt");
	d.PreferredMatchRate();
	d.MakeCheck();
	d.PrintCoupleList();

	return 0;
}

int main()
{
	setlocale(LC_ALL, "swedish");

	main_test();

	system("PAUSE");

	return 0;
}